package cac.fenjian.resource.partSalesReturn.dao;

import cac.fenjian.resource.WmsReturnApply.dto.WmsReturnApplyDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public interface PartSalesReturnDao {
    /*插入数据到退货申请表中*/
    public int insertWmsReturnApply(@Param("bean") WmsReturnApplyDTO wmsReturnApplyDTO, @Param("map") Map map);
    /*查询退货表数据*/
    public Page<WmsReturnApplyDTO> selectReturnApply(@Param("bean") WmsReturnApplyDTO wmsReturnApplyDTO, @Param("orderBy") String orderBy, @Param("keyWords") String keyWords, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
    /*修改退货表数据*/
    public Integer updateReturnApply(WmsReturnApplyDTO wmsReturnApplyDTO);
    /*按照id查找退货单信息*/
    public WmsReturnApplyDTO findWmsReturnApplyById(String wmsReturnApplyId);
    /*按照主键删除*/
    public int deleteWmsReturnApplyById(String wmsReturnApplyId);
    /*改变退货状态*/
    public Integer changeReturnType(String wmsReturnApplyId);
    /*查询退货表数据*/
    public Page<WmsReturnApplyDTO> selectReturnApplyProduct(@Param("bean") WmsReturnApplyDTO wmsReturnApplyDTO, @Param("orderBy") String orderBy, @Param("keyWords") String keyWords, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    /*查询库存数量*/
    public HashMap<String,String> selectItemQty(String wmsDeliveryPlanId);

    List<HashMap> searchWorkbinMaterial(@Param("map")HashMap map);
}